﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public partial   class RolePermissionBLL
    {

        public List<Permission> GetPermissionByRoleId(int roleId)
        {
            return this.GetList(p => p.rid == roleId && p.pId != 2).Select(p => p.GetPermisssion()).ToList(); ;

        }

    }
}
